<?php
namespace Lunch\Controller;
use Think\Controller;
use User\Api\UserApi;
/**
 * 用户管理部分
 * @author 小陈叔叔<Jason.Chen>
 */
class MemberController extends LunchController {

	/**
	 * 注册
	 */
	function register() {
		$username = $this->data['username'];
		$password = $this->data['password'];
		$user = new UserApi;
		$uid  = $user->register($username, $password);
		
	}

	/**
	 * 登陆
	 */
	function login() {
		$user = new UserApi;
		$uid  = $user->login($username, $password);
	}

	/**
	 * 用户信息
	 */
	function info() {
		
	}

	/**
	 * 修改信息
	 */
	function updateInfo() {
		
	}
}